﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ExpertRegisterTable.ascx.cs"
    Inherits="ExpertMIS.Admin.UserControl.ExpertRegisterTable" %>
<style type="text/css">
    .expertImageCell
    {
        width: 150px;
        text-align: center;
        vertical-align: middle;
    }
    .style2
    {
        width: 135px;
        font-size: 12px;
        font-family: 宋体;
    }
    .style3
    {
        width: 120px;
        font-size: 12px;
        font-family: 宋体;
    }
    .style4
    {
        width: 77px;
        font-size: 12px;
        font-family: 宋体;
    }
    .panelTitle
    {
        width: 600px;
        height: 25px;
        font-size: 11pt;
        background-color: #1640ef;
        color: White;
        text-align: left;
        vertical-align: middle;
    }
</style>

<script type="text/javascript">
    function chooseDomain(el, chooseChilds) {
        if (chooseChilds) {
            var domain = $(el.parentNode).attr('domain');
            //parentdomain
            $("span[parentdomain='" + domain + "'] input[type='checkbox']").attr('checked', el.checked);
        }
        
        // HACK,wdong, add 'typeof expertList != undefined'
        if (typeof(expertList) != "undefined" && expertList != null) {
            expertList = null;
            getExpertList();
        }
    }
</script>

<div class="error">
</div>
    <div style="width: 600px; text-align: left;">
        <div class="content_title">
            基本信息
        </div>
        <div class="content_detail" style="padding-left: 12px; width: 588px; text-align: left;">
            <table style="width: 100%; border: 0;">
                <tr>
                    <td class="expertImageCell" rowspan="7">
                        <div style="border: 0px 0px 0px 0px">
                            <asp:Image ID="imgPhoto" runat="server" Width="128" Height="128" BorderStyle="None" />
                        </div>
                        <div style="border: 0px 0px 0px 0px; font-size: 12px;">
                        </div>
                    </td>
                    <td class="style3">
                        姓名
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txName" Text="text1" Width="120px"></asp:TextBox>
                    </td>
                    <td class="style4">
                        性别
                    </td>
                    <td>
                        <asp:RadioButton runat="server" ID="rbMale" Text="男" GroupName="gender" Checked="True" />
                        <asp:RadioButton runat="server" ID="rbFemale" Text="女" GroupName="gender" />
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        民族
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlNational" Width="120px">
                        </asp:DropDownList>
                    </td>
                    <td class="style4">
                        出生年月
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txBornDate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        籍贯
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlOrigin">
                        </asp:DropDownList>
                    </td>
                    <td class="style4">
                        党派
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlParties">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        参加工作时间
                    </td>
                    <td colspan="3">
                        <asp:TextBox runat="server" ID="txWhenJoinWork" Width="120px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        毕业院校及专业
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txSchoolMajor" Width="120px"></asp:TextBox>
                    </td>
                    <td class="style4">
                        学历学位
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlDegree">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        行政职务
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txAdminPosition" Width="120px"></asp:TextBox>
                    </td>
                    <td class="style4">
                        技术职务
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txSkills"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        更新照片
                    </td>
                    <td colspan="3">
                        <asp:FileUpload runat="server" ID="fuPhoto" Width="300px" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="width: 600px; text-align: left;">
        <div class="content_title">
            专家所属行业</div>
        <div class="content_detail" style="padding-left: 12px; width: 588px; text-align: left;">
            <asp:DataList ID="dlDomains" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                Width="510px" OnItemDataBound="dlDomains_ItemDataBound" BorderColor="#595959"
                BorderStyle="Solid" BorderWidth="1px">
                <ItemStyle Width="170px" Font-Size="10pt" VerticalAlign="Top" />
                <ItemTemplate>
                    <asp:Panel ID="pnDomain" runat="server" Width="170px" Style="height: auto;" BorderWidth="1px"
                        BorderColor="#595959" BorderStyle="Solid">
                        <asp:CheckBox ID="chkDomainRoot" runat="server" Text='<%# Eval("DomainName") %>'
                            domain='<%# Eval("OID") %>' Font-Size="9pt" onclick="chooseDomain(this,true);" />
                        <div style="height: 1px; background-color: #595959">
                        </div>
                        <asp:DataList ID="dlChilds" runat="server" RepeatDirection="Vertical" RepeatLayout="Flow">
                            <ItemTemplate>
                                <div style="padding-left: 8px; font-size: 7pt">
                                    <asp:CheckBox ID="chkDomain" runat="server" Text='<%# Eval("DomainName") %>' domain='<%# Eval("OID") %>'
                                        onclick="chooseDomain(this,false);" />
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                    </asp:Panel>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
    <div style="width: 600px; text-align: left;">
        <div class="content_title">
            联系方式</div>
        <div class="content_detail" style="padding-left: 12px; width: 588px; text-align: left;">
            <table style="width: 100%; border: 0;">
                <tr>
                    <td class="style2">
                        手机
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txCellPhone" Width="80%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        座机
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txFixedPhone" Width="80%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        电子邮箱
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txEMail" Width="80%"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="width: 600px; text-align: left;">
        <div class="content_title">
            专业特长和研究方向</div>
        <div class="content_detail" style="padding-left: 12px; width: 588px; text-align: left;">
            <asp:TextBox runat="server" ID="txExpertise" Rows="8" TextMode="MultiLine" Width="100%"></asp:TextBox>
        </div>
    </div>
    <div style="width: 600px; text-align: left;">
        <div class="content_title">
            获得的最高荣誉及奖项</div>
        <div class="content_detail" style="padding-left: 12px; width: 588px; text-align: left;">
            <asp:TextBox runat="server" ID="txAwards" Rows="8" TextMode="MultiLine" Width="100%"></asp:TextBox>
        </div>
    </div>
